<?php

namespace app\common\validate;

use app\common\validate\Base;

class Logistics extends Base
{

    protected $rule = [
        'id|物流Id' => 'require|integer',
        'title|物流名称' => 'require|unique:logistics',
    ];

    protected $message = [
    ];

    protected $scene = [
        // 后台新增物流
        'manage_add' => ['title'],
        // 后台编辑物流
        'manage_edit' => ['title'=>'require'],
    ];


}